package weeklyreport

import grails.test.mixin.*
import spock.lang.Specification

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(Issue)
class IssueSpec extends Specification {

    def setup() {
    }

    def cleanup() {
    }

	void testValidate() {
		given:
			Issue issue = new Issue(
				date:"2013/11/26",
				imNumber:"IM00148265",
				depart:"徐东商城",
				solveMan:new User(name:"黄造时",role:"user"),
				description:"查询员工信息界面显示空白,账号是zdj101027密码是123456 ",
				reason:"传送的数据错误",
				status:"已解决"
			)
		expect:
			issue.validate()
		
	}
}
